package com.hackintosh.metal;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/06/06
 * @modified By：
 * @version: 1.0
 */
public class MaterialProducer {

    public static void main(String[] args) {
        MaterialContainer materialContainer = new MaterialContainer();
        materialContainer.add(new Paper());
        materialContainer.add(new Copper());

        Company art = new Art();
        materialContainer.useMaterial(art);
        System.out.println("------------------------");
        Company mint = new Mint();
        materialContainer.useMaterial(mint);
        System.out.println("------------------------");
        Company architecture = new Architecture();
        materialContainer.useMaterial(architecture);

    }
}
